package com.yanqu.road.task;

import com.yanqu.road.player.PlayerControl;
import io.netty.channel.Channel;

import java.util.TimerTask;

public class DelayOfflineTask extends TimerTask {
    private long playerId;
    private Channel channel;

    public DelayOfflineTask(long playerId, Channel channel) {
        this.playerId = playerId;
        this.channel = channel;
    }

    @Override
    public void run() {
        PlayerControl.removePlayerOnline(playerId, channel,false);
    }
}
